package xyz.nizhipeng.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import xyz.nizhipeng.dao.UserinfoDao;
import xyz.nizhipeng.domain.UserInfo;
import xyz.nizhipeng.service.UserinfoService;

import java.util.List;

@Service
public class UserinfoServiceImpl implements UserinfoService {
    @Autowired
    private UserinfoDao userinfoDao;

    @Override
    public List<UserInfo> findAll() {

        return userinfoDao.findAll();
    }

    @Override
    public List<UserInfo> login(String name) {
        return userinfoDao.login(name);
    }
}
